package com.sharemarking.wa.platform.controller;

import com.sharemarking.wa.common.ResponseParams;
import com.sharemarking.wa.platform.service.OrderCommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dxy
 */
@RestController
@RequestMapping(value = "orderCommon")
public class OrderCommonController {
    @Autowired
    private OrderCommonService orderCommonService;

    /**
     *获取订单列表
     * @return
     * @throws Exception
     */
    @RequestMapping("getOrderList")
    public ResponseParams<?> getOrderList() throws Exception {
        return orderCommonService.getOrderList();
    }


    /**
     *获取状态信息
     * @return
     * @throws Exception
     */
    @RequestMapping("getStateList")
    public ResponseParams<?> getStateList() throws Exception {
        return orderCommonService.getStateList();
    }


    /**
     *获取订单详情
     * @return
     * @throws Exception
     */
    @RequestMapping("getOrderInfo")
    public ResponseParams<?> getOrderInfo() throws Exception {
        return orderCommonService.getOrderInfo();
    }

    /**
     *获取任务/可接订单列表
     * @return
     * @throws Exception
     */
    @RequestMapping("getTaskOrderList")
    public ResponseParams<?> getTaskOrderList() throws Exception {
        return orderCommonService.getTaskOrderList();
    }

    /**
     *获取任务详情
     * @return
     * @throws Exception
     */
    @RequestMapping("getTaskOrderInfo")
    public ResponseParams<?> getTaskOrderInfo() throws Exception {
        return orderCommonService.getTaskOrderInfo();
    }
}
